//
//  AppDelegate.h
//  CoreDataDemo
//
//  Created by UniHan_iMac on 17/4/1.
//  Copyright © 2017年 UniHan_iMac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

// 管理对象上下文
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
// 管理对象数据模型
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
// 本地持久化存储助理
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

@property (readonly, strong) NSPersistentContainer *persistentContainer;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

@end

